<template>
 <header id='head_top'>
        <section class="head_goback" v-if="goBack" @click="$router.go(-1)">
            <svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" version="1.1">
                <polyline points="12,18 4,9 12,0" style="fill:none;stroke:rgb(255,255,255);stroke-width:2"/>
            </svg>
        </section>
        <section class="title_head ellipsis" v-if="headTitle">
            <span class="title_text">{{headTitle}}</span>
        </section>
         <section class="reorder_head ellipsis" v-if="reorder" @click="$router.go(-2)">
            <span class="title_text">{{reorder}}</span>
        </section>
    </header>
</template>
<script>
export default {
  data () {
    return {
    }
  },
  props: ['headTitle', 'goBack', 'reorder']
}
</script>
<style lang="scss" scoped>
@import  "../../style/mixin";
#head_top{
        background-color: #989898;
        position: fixed;
        z-index: 100;
        left: 0;
        top: 0;
        @include wh(100%, 1.95rem);
    }
    .head_goback{
        left: 0.4rem;
        @include wh(0.6rem, 1rem);
        line-height: 2.2rem;
        margin-left: .4rem;
    }
    .title_head{
        @include center;
        width: 40%;
        color: #fff;
        text-align: center;
        .title_text{
            @include sc(0.8rem, #fff);
            text-align: center;
            font-weight: bold;
        }
    }
    .reorder_head{
       @include center;
       width: 90%;
       color: #fff;
       text-align: right;
       .title_text{
         @include sc(0.8rem, #fff);
            text-align: right;
            font-weight: bold;
       }
    }
</style>

